<!-- 为事件处理函数标注类型 -->
<script lang="ts" setup>
import {} from 'vue'
function valueChange(event: Event) {
  console.log((event.target as HTMLInputElement).value)
}
</script>

<template>
  <div>
    <input type="text" @change="valueChange" />
  </div>
</template>

<style lang="scss" scoped></style>
